home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 2 / ETO Development Tools 2.iso / Tools - Objects / MacApp / MacApp CD Release / MacApp 2.0.1 (Many Libraries) / Examples / DemoDialogs / DemoDialogs.r < prev    next >
Encoding:
Text File  |  1990-10-25  |  44.2 KB  |  1,448 lines  |  [TEXT/MPS ]

  1. /* Copyright © 1988-1990 Apple Computer, Inc.  All rights reserved. */
  2.  
  3. /* • Auto-Include the requirements for this source */
  4. #ifndef __TYPES.R__
  5. #include "Types.r"
  6. #endif
  7.  
  8. #ifndef __MacAppTypes__
  9. #include "MacAppTypes.r"
  10. #endif
  11.  
  12. #if qTemplateViews
  13. #ifndef __ViewTypes__
  14. #include "ViewTypes.r"
  15. #endif
  16. #endif
  17.  
  18. #if qDebug
  19. include "Debug.rsrc";
  20. #endif
  21. include "MacApp.rsrc";
  22. include "Dialog.rsrc";
  23.  
  24. include $$Shell("ObjApp")"DemoDialogs" 'CODE';
  25.  
  26. /* Resource IDs */
  27.  
  28. #define kTestIcon            1000
  29. #define kTestPopup             235
  30. #define kBaudPopup             236
  31. #define kParityPopup         237
  32. #define kTestPicture        1000
  33. #define kTestStrings        1000
  34. #define kCalcPicture        1009
  35.  
  36. /* Command numbers */
  37.  
  38. #define cProcedureViews        1001
  39. #define cTemplateViews        1002
  40. #define cMonthlyDialog        1003
  41. #define cSaveDialog            1004
  42. #define    cMarkDialog            1005
  43. #define cPageSetupDialog    1006
  44. #define cHomeBrewControls    1007
  45. #define cTabbingTest        1008
  46. #define cCalculator            1009
  47. #define cScrollingTest        1011
  48. #define cFormatDialog        1012
  49. #define cModelessMarkDialog    1013
  50. #define cPopupExample        1100
  51. #define cCluster            1101
  52.  
  53. resource 'mem!' (1001,
  54. #if qNames
  55.     "BaseDemoDialogs",
  56. #endif
  57.     purgeable) {
  58.     0,                // Add to temporary reserve
  59.     0,                // Add to permanent reserve
  60.     $1000                // Add to stack space (actually this first one sets the base stack requirement
  61.                         // to be the same as for a Macintosh® Plus.
  62. };
  63.  
  64. resource 'seg!' (256, purgeable) {
  65.     {
  66.         "GOpen";
  67.         "GClose";
  68.         "GNonRes";
  69.         "GSelCommand";
  70.         "GDoCommand"
  71.     }
  72. };
  73.  
  74. resource 'SIZE' (-1) {
  75.     dontSaveScreen,
  76.     acceptSuspendResumeEvents,
  77.     enableOptionSwitch,
  78.     canBackground,
  79.     MultiFinderAware,
  80.     backgroundAndForeground,
  81.     dontGetFrontClicks,
  82.     ignoreChildDiedEvents,
  83.     is32BitCompatible,
  84.     reserved,
  85.     reserved,
  86.     reserved,
  87.     reserved,
  88.     reserved,
  89.     reserved,
  90.     reserved,
  91. #if qDebug
  92.     500 * 1024,
  93.     400 * 1024
  94. #else
  95.     290 * 1024,
  96.     218 * 1024
  97. #endif
  98. };
  99.  
  100. resource 'DITL' (phAboutApp, purgeable) {
  101.      {
  102. /* [1] */    {160, 182, 180, 262}, Button { enabled, "OK" };
  103. /* [2] */    {8, 70, 152, 316}, StaticText { disabled, 
  104.     "This program has several examples of MacApp dialogs." 
  105.     "\n\nThis program was written "
  106.     "with MacApp® © 1985-1990 Apple Computer, Inc."};
  107. /* [3] */    {10, 20, 42, 52}, Icon { disabled, 1 }
  108.     }
  109. };
  110.  
  111. resource 'ALRT' (1000, purgeable) {
  112.     {44, 48, 130, 358},
  113.     1000,
  114.     {
  115.         OK, visible, sound1,
  116.         OK, visible, sound1,
  117.         OK, visible, sound1,
  118.         OK, visible, sound1
  119.     }
  120. };
  121.  
  122. include "Defaults.rsrc"  'ALRT' (phAboutApp);    // Grab the default about box
  123.  
  124. include "Defaults.rsrc" 'cmnu' (mApple);        // Grab the default Apple menu
  125.  
  126. resource 'cmnu' (mFile) {
  127.     mFile,
  128.     textMenuProc,
  129.     0x7FFFFBBB,
  130.     enabled,
  131.     "File",
  132.      {
  133. /* [1] */    "Quit",        noIcon, "Q",    noMark, plain, cQuit
  134.     }
  135. };
  136.  
  137. include "Defaults.rsrc" 'cmnu' (mEdit);        // Grab the default Edit menus
  138.  
  139. resource 'cmnu' (4) {
  140.     4,
  141.     textMenuProc,
  142.     0x7FFFFFBD,
  143.     enabled,
  144.     "Dialogs",
  145.      {
  146. /* [1] */    "Views by Procedures",        noIcon, noKey, noMark, plain, cProcedureViews;
  147. /* [2] */    "Views by Templates",        noIcon, noKey, noMark, plain, cTemplateViews;
  148. /* [3] */    "Side-by-Side Scrolling",    noIcon, noKey, noMark, plain, cScrollingTest;
  149. /* [4] */    "Monthly Values Dialog",    noIcon, noKey, noMark, plain, cMonthlyDialog;
  150. /* [5] */    "Save Dialog",                noIcon, noKey, noMark, plain, cSaveDialog;
  151. /* [6] */    "Mark Dialog",                noIcon, noKey, nomark, plain, cMarkDialog;
  152. /* [6] */    "Modeless Mark Dialog",        noIcon, noKey, nomark, plain, cModelessMarkDialog;
  153. /* [7] */    "Page Setup Dialog",        noIcon, noKey, nomark, plain, cPageSetupDialog;
  154. /* [8] */    "Format Dialog",            noIcon, noKey, nomark, plain, cFormatDialog;
  155. /* [9] */    "Home Brew Controls",        noIcon, noKey, nomark, plain, cHomeBrewControls;
  156. /* [10] */    "Tabbing Test",                noIcon, noKey, nomark, plain, cTabbingTest;
  157. /* [11] */    "Calculator Test",            noIcon, noKey, noMark, plain, cCalculator
  158.     }
  159. };
  160.  
  161. include "Defaults.rsrc" 'cmnu' (mBuzzwords);    // Get the default buzzwords menu
  162.  
  163. resource 'cmnu' (kTestPopup) {
  164.     kTestPopup,
  165.     textMenuProc,
  166.     allEnabled,
  167.     enabled,
  168.     "Popup:",
  169.     {
  170. /* [1] */    "Item 1",     noIcon, "", "", plain, nocommand;
  171. /* [2] */    "Item 2",     noIcon, "", "", plain, nocommand;
  172. /* [3] */    "Item 3",     noIcon, "", "", plain, nocommand;
  173. /* [4] */    "Item 4",     noIcon, "", "", plain, nocommand;
  174. /* [5] */    "Item 5",     noIcon, "", "", plain, nocommand;
  175. /* [6] */    "Item 6",     noIcon, "", "", plain, nocommand;
  176. /* [7] */    "Item 7",     noIcon, "", "", plain, nocommand;
  177. /* [8] */    "Item 8",     noIcon, "", "", plain, nocommand
  178.     }
  179. };
  180.  
  181. resource 'mctb' (kTestPopup) { {
  182.         kTestPopup, 0,
  183.         {
  184.         0x9999, 0x0000, 0x9999;            /* title color */
  185.         0xFFFF, 0x6666, 0x0000;            /* "menu bar" color */
  186.         0x0000, 0x6666, 0xFFFF;            /* default item color */
  187.         0xFFFF, 0xFFFF, 0x0000            /* default menu background color */
  188.         };
  189.  
  190.         kTestPopup, 3,
  191.         {
  192.         0xFFFF, 0x0000, 0x0000;            /* mark color */
  193.         0xFFFF, 0x0000, 0x0000;            /* name color */
  194.         0xFFFF, 0x0000, 0x0000;            /* command Key color */
  195.         0xFFFF, 0xFFFF, 0xFFFF            /* NFG!!! */
  196.         }
  197. } };
  198.  
  199. resource 'cmnu' (kBaudPopup) {
  200.     kBaudPopup,
  201.     textMenuProc,
  202.     allEnabled,
  203.     enabled,
  204.     "Baud:",
  205.     {
  206. /* [1] */    "110",     noIcon, "", "", plain, nocommand;
  207. /* [2] */    "300",     noIcon, "", "", plain, nocommand;
  208. /* [3] */    "600",     noIcon, "", "", plain, nocommand;
  209. /* [4] */    "1200",     noIcon, "", "", plain, nocommand
  210.     }
  211. };
  212.  
  213. resource 'cmnu' (kParityPopup) {
  214.     kParityPopup,
  215.     textMenuProc,
  216.     allEnabled,
  217.     enabled,
  218.     "Parity:",
  219.     {
  220. /* [1] */    "Even",     noIcon, "", "", plain, nocommand;
  221. /* [2] */    "Odd",     noIcon, "", "", plain, nocommand;
  222. /* [3] */    "No",     noIcon, "", "", plain, nocommand
  223.     }
  224. };
  225.  
  226. resource 'MBAR' (kMBarDisplayed) { {mApple; mFile; mEdit; 4} };
  227.  
  228. resource 'MBAR' (kMBarNotDisplayed) { {kTestPopup; kBaudPopup; kParityPopup} };
  229.  
  230. resource 'STR#' (kTestStrings, purgeable) { {
  231.     "Scroll me vertically…\n\n(P.S. This should read 'PARAM0': ^0\nThis should read 'PARAM1': ^1\nThis should read 'PARAM0': ^0)";
  232.     "A static string"
  233. } };
  234.  
  235. /************************************************************************************/
  236. /*    Views by procedure                                                                */
  237. /************************************************************************************/
  238. resource 'WIND' (cProcedureViews, purgeable) {
  239.     {50, 20, 310, 450}, zoomDocProc, invisible, goAway, 0x0, "Views by Procedure"
  240. };
  241.  
  242. /************************************************************************************/
  243. /*    Views by template                                                                */
  244. /************************************************************************************/
  245. resource 'view' (cCluster, purgeable) {
  246.     {
  247.         root, 'TCls', {0, 0}, { 190, 150 }, sizeFixed, sizeFixed, shown, disabled,
  248.         Cluster {
  249.             "",
  250.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  251.                 noInset, systemFont,
  252.             "A Cluster!" };
  253.  
  254.         'TCls', 'PRad', { 20, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  255.         Radio {
  256.             "",
  257.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  258.                 noInset, systemFont,
  259.             on, "Plain" };
  260.  
  261.         'TCls', 'BRad', { 40, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  262.         Radio {
  263.             "",
  264.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  265.                 noInset, bold, 12, black, "",
  266.             off, "Bold" };
  267.  
  268.         'TCls', 'IRad', { 60, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  269.         Radio {
  270.             "",
  271.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  272.                 noInset, italic, 12, black, "",
  273.             off, "Italic" };
  274.  
  275.         'TCls', 'URad', { 80, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  276.         Radio {
  277.             "",
  278.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  279.                 noInset, underline, 12, black, "",
  280.             off, "Underline" };
  281.  
  282.         'TCls', 'ORad', { 100, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  283.         Radio {
  284.             "",
  285.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  286.                 noInset, outline, 12, black, "",
  287.             off, "Outline" };
  288.  
  289.         'TCls', 'SRad', { 120, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  290.         Radio {
  291.             "",
  292.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  293.                 noInset, shadow, 12, black, "",
  294.             off, "Shadow" };
  295.  
  296.         'TCls', 'CRad', { 140, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  297.         Radio {
  298.             "",
  299.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  300.                 noInset, condense, 12, black, "",
  301.             off, "Condense" };
  302.  
  303.         'TCls', 'ERad', { 160, 10 }, { 20, 130 }, sizeFixed, sizeFixed, shown, enabled,
  304.         Radio {
  305.             "",
  306.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  307.                 noInset, extend, 12, black, "",
  308.             off, "Extend" };
  309.     }
  310. };
  311.  
  312.  
  313. resource 'view' (cTemplateViews, purgeable) {
  314.     {
  315.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  316.         Window {
  317.             "",
  318.                 zoomDocProc, goAwayBox, resizable, modeless, doFirstClick,
  319.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  320.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, 'DLOG',
  321.                 "Views by Template" };
  322.  
  323.         'WIND', 'SCLR',    { 0, 0 }, { 260-kSBarSizeMinus1, 430-kSBarSizeMinus1 },
  324.         sizeRelSuperView, sizeRelSuperView, shown, enabled,
  325.         Scroller {
  326.             "",
  327.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  328.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  329.  
  330.         'SCLR', 'DLOG',    { 0, 0 }, { 900, 480 },
  331.         sizeFixed, sizeFixed, shown, enabled,
  332.         DialogView { "", noID, noID };
  333.  
  334.         'DLOG', IncludeViewsAt { cCluster, { 340, 100 } };
  335.  
  336.         'DLOG', noID, { 100, 50 }, { 150, 300 }, sizeFixed, sizeFixed, shown, disabled,
  337.         StaticText {
  338.             "",
  339.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  340.                 noInset, italic, 12, {0, 0, 0xFFFF}, "a",
  341.             justCenter, "Scroll me vertically…\n\n(P.S. This should read 'PARAM0': ^0\nThis should read 'PARAM1': ^1\nThis should read 'PARAM0': ^0)" };
  342.  
  343.         'DLOG', noID, { 540, 100 }, { 20, 100 }, sizeFixed, sizeFixed, shown, enabled,
  344.         CheckBox {
  345.             "",
  346.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  347.                 noInset, applFont12,
  348.             off, "Check Box" };
  349.  
  350.         'DLOG', noID,    { 540, 270 }, { 28, 100 }, sizeFixed, sizeFixed, shown, enabled,
  351.         Button {
  352.             "",
  353.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, doesntDismiss,
  354.                 { 4, 4, 4, 4 }, plain, 10, {0, 0, 0}, "a",
  355.             "Push Button" };
  356.  
  357.         'DLOG', noID, { 570, 130 }, { 35, 35 }, sizeFixed, sizeFixed, shown, enabled,
  358.         Icon {
  359.             "",
  360.                 adnFrame+adnShadow, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  361.                 { 1, 1, 1, 1 }, systemFont,
  362.             preferColor, kTestIcon };
  363.  
  364.         'DLOG', noID, { 660, 100 }, { 0x18C-0xF0+16, 0x12C-0x8F+16 },
  365.         sizeFixed, sizeFixed, shown, enabled,
  366.         Picture {
  367.             "",
  368.                 adnRRect+adnShadow, {2, 2}, sizeable, notDimmed, notHilited, doesntDismiss,
  369.                 { 8, 8, 8, 8 }, systemFont,
  370.             kTestPicture };
  371.  
  372.         'DLOG', noID, { 620, 20 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  373.         StaticText {
  374.             "",
  375.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  376.                 noInset, plain, 12, {0xFFFF, 0, 0}, "",
  377.             justCenter, "A static string" };
  378.  
  379.         'DLOG', noID, { 620, 140 }, { 22, 100 }, sizeFixed, sizeFixed, shown, enabled,
  380.         EditText {
  381.             "",
  382.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  383.                 {3, 3, 3, 3}, applFont12,
  384.             justRight, "EditText",
  385.             255, ArrowsAndBackspace }
  386.     }
  387. };
  388.  
  389. /*    The popup example is separate from the rest of the views so that we avoid        */
  390. /*    creating it if the machine doesn't support popup menus.                            */
  391.  
  392. resource 'view' (cPopupExample, purgeable) {
  393.     {
  394.         root, noID, { 589, 290 }, { 22, 120 }, sizeFixed, sizeFixed, shown, enabled,
  395.         Popup {
  396.             "",
  397.                 noAdornment, notSizeable, notDimmed, notHilited, doesntDismiss,
  398.                 noInset, systemFont,
  399.             kTestPopup, 2, 50 },
  400.         root, noID, { 624, 290 }, { 22, 120 }, sizeFixed, sizeFixed, shown, enabled,
  401.         Popup {
  402.             "",
  403.                 noAdornment, notSizeable, notDimmed, notHilited, doesntDismiss,
  404.                 noInset, systemFont,
  405.             kBaudPopup, 1, 50 },
  406.         root, noID, { 659, 290 }, { 22, 120 }, sizeFixed, sizeFixed, shown, enabled,
  407.         Popup {
  408.             "",
  409.                 noAdornment, notSizeable, notDimmed, notHilited, doesntDismiss,
  410.                 noInset, systemFont,
  411.             kParityPopup, 1, 50 }
  412.     }
  413. };
  414.  
  415. /************************************************************************************/
  416. /*    Scrolling test dialog                                                            */
  417. /************************************************************************************/
  418. resource 'view' (cScrollingTest, purgeable) {
  419.     {
  420.         root, 'WIND', { 50, 20 }, { 260, 431 }, sizeVariable, sizeVariable, shown, enabled,
  421.         Window {
  422.             "",
  423.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  424.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  425.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, noId,
  426.                 "Side-by-Side Scrolling" };
  427.  
  428.         'WIND', 'SCL1',    { 0, 0 }, { 260-kSBarSizeMinus1, 215-kSBarSizeMinus1 },
  429.         sizeRelSuperView, sizeFixed, shown, disabled,
  430.         Scroller {
  431.             "",
  432.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  433.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  434.  
  435.         'SCL1', noId, { 0, 0 }, { 160000, 1000 },
  436.         sizeFixed, sizeFixed, shown, enabled,
  437.         View { "TNumbersView" };
  438.  
  439.         'WIND', 'SCL2',    { 0 , 216 }, { 260-kSBarSizeMinus1, 215-kSBarSizeMinus1 },
  440.         sizeRelSuperView, sizeRelSuperView, shown, disabled,
  441.         Scroller {
  442.             "",
  443.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  444.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  445.  
  446.         'SCL2', noId, { 0, 0 }, { 160000, 1000 },
  447.         sizeFixed, sizeFixed, shown, enabled,
  448.         View { "TNumbersView"  }
  449.     }
  450. };
  451.  
  452.  
  453.  
  454. /************************************************************************************/
  455. /*    Monthly values dialog                                                            */
  456. /************************************************************************************/
  457. resource 'view' (cMonthlyDialog, purgeable) {
  458.     {
  459.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  460.         Window {
  461.             "",
  462.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  463.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  464.                 AdaptToScreen, stagger, forceOnScreen, dontCenter, 'jan ',
  465.                 "Monthly Values" };
  466.  
  467.         'WIND', 'SCLR',    { 0, 0 }, { 260-kSBarSizeMinus1, 430-kSBarSizeMinus1 },
  468.         sizeRelSuperView, sizeRelSuperView, shown, enabled,
  469.         Scroller {
  470.             "",
  471.                 vertScrollBar, horzScrollBar, 0, 0, 16, 16,
  472.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  473.  
  474.         'SCLR', 'DLOG',    { 0, 0 }, { 1000, 500 }, sizeFixed, sizeFixed, shown, enabled,
  475.         DialogView {
  476.             "TMonthlyDialog",
  477.                 noID, noID };
  478.  
  479.         'DLOG', noID, { 10, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  480.         StaticText {
  481.             "",
  482.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  483.                 noInset, systemFont,
  484.             justSystem, "January" };
  485.  
  486.         'DLOG', 'jan ', { 9, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  487.         NumberText {
  488.             "",
  489.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  490.                 stdInset, applFont12,
  491.             justRight, "",
  492.             5, arrowsAndBackspace,
  493.             0, 0, 32767 };
  494.  
  495.         'DLOG', noID, { 40, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  496.         StaticText {
  497.             "",
  498.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  499.                 noInset, systemFont,
  500.             justSystem, "February" };
  501.  
  502.         'DLOG', 'feb ', { 39, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  503.         NumberText {
  504.             "",
  505.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  506.                 stdInset, applFont12,
  507.             justRight, "",
  508.             5, arrowsAndBackspace,
  509.             0, 0, 32767 };
  510.  
  511.         'DLOG', noID, { 70, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  512.         StaticText {
  513.             "",
  514.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  515.                 noInset, systemFont, justSystem, "March" };
  516.  
  517.         'DLOG', 'mar ', { 69, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  518.         NumberText {
  519.             "",
  520.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  521.                 stdInset, applFont12,
  522.             justRight, "",
  523.             5, arrowsAndBackspace,
  524.             0, 0, 32767 };
  525.  
  526.         'DLOG', noID, { 100, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  527.         StaticText {
  528.             "",
  529.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  530.                 noInset, systemFont,
  531.             justSystem, "April" };
  532.  
  533.         'DLOG', 'apr ', { 99, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  534.         NumberText {
  535.             "",
  536.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  537.                 stdInset, applFont12,
  538.             justRight, "",
  539.             5, arrowsAndBackspace,
  540.             0, 0, 32767 };
  541.  
  542.         'DLOG', noID, { 130, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  543.         StaticText {
  544.             "",
  545.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  546.                 noInset, systemFont,
  547.             justSystem, "May" };
  548.  
  549.         'DLOG', 'may ', { 129, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  550.         NumberText {
  551.             "",
  552.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  553.                 stdInset, applFont12,
  554.             justRight, "",
  555.             5, arrowsAndBackspace,
  556.             0, 0, 32767 };
  557.  
  558.         'DLOG', noID, { 160, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  559.         StaticText {
  560.             "",
  561.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  562.                 noInset, systemFont,
  563.             justSystem, "June" };
  564.  
  565.         'DLOG', 'jun ', { 159, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  566.         NumberText {
  567.             "",
  568.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  569.                 stdInset, applFont12,
  570.             justRight, "",
  571.             5, arrowsAndBackspace,
  572.             0, 0, 32767 };
  573.  
  574.         'DLOG', noID, { 190, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  575.         StaticText {
  576.             "",
  577.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  578.                 noInset, systemFont,
  579.             justSystem, "July" };
  580.  
  581.         'DLOG', 'jul ', { 189, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  582.         NumberText {
  583.             "",
  584.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  585.                 stdInset, applFont12,
  586.             justRight, "",
  587.             5, arrowsAndBackspace,
  588.             0, 0, 32767 };
  589.  
  590.         'DLOG', noID, { 220, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  591.         StaticText {
  592.             "",
  593.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  594.                 noInset, systemFont,
  595.             justSystem, "August" };
  596.  
  597.         'DLOG', 'aug ', { 219, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  598.         NumberText {
  599.             "",
  600.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  601.                 stdInset, applFont12,
  602.             justRight, "",
  603.             5, arrowsAndBackspace,
  604.             0, 0, 32767 };
  605.  
  606.         'DLOG', noID, { 250, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  607.         StaticText {
  608.             "",
  609.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  610.                 noInset, systemFont,
  611.             justSystem, "September" };
  612.  
  613.         'DLOG', 'sep ', { 249, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  614.         NumberText {
  615.             "",
  616.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  617.                 stdInset, applFont12,
  618.             justRight, "",
  619.             5, arrowsAndBackspace,
  620.             0, 0, 32767 };
  621.  
  622.         'DLOG', noID, { 280, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  623.         StaticText {
  624.             "",
  625.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  626.                 noInset, systemFont,
  627.             justSystem, "October" };
  628.  
  629.         'DLOG', 'oct ', { 279, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  630.         NumberText {
  631.             "",
  632.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  633.                 stdInset, applFont12,
  634.             justRight, "",
  635.             5, arrowsAndBackspace,
  636.             0, 0, 32767 };
  637.  
  638.         'DLOG', noID, { 310, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  639.         StaticText {
  640.             "",
  641.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  642.                 noInset, systemFont,
  643.             justSystem, "November" };
  644.  
  645.         'DLOG', 'nov ', { 309, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  646.         NumberText {
  647.             "",
  648.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  649.                 stdInset, applFont12,
  650.             justRight, "",
  651.             5, arrowsAndBackspace,
  652.             0, 0, 32767 };
  653.  
  654.         'DLOG', noID, { 340, 10 }, { 20, 100 }, sizeFixed, sizeFixed, shown, disabled,
  655.         StaticText {
  656.             "",
  657.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  658.                 noInset, systemFont,
  659.             justSystem, "December" };
  660.  
  661.         'DLOG', 'dec ', { 339, 120 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  662.         NumberText {
  663.             "",
  664.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  665.                 stdInset, applFont12,
  666.             justRight, "",
  667.             5, arrowsAndBackspace,
  668.             0, 0, 32767 }
  669.  
  670.     }
  671. };
  672.  
  673.  
  674. /************************************************************************************/
  675. /*    The "Save" dialog                                                                */
  676. /************************************************************************************/
  677. resource 'view' (cSaveDialog, purgeable) {
  678.     {
  679.         root, 'WIND', { 100, 110 }, { 120, 292 }, sizeVariable, sizeVariable, shown, enabled,
  680.         Window {
  681.             "",
  682.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  683.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  684.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally,
  685.                 'DLOG', "Save Dialog" };
  686.  
  687.         'WIND', 'DLOG',    { 0, 0 }, { 120, 292 }, sizeFixed, sizeFixed, shown, enabled,
  688.         DialogView {
  689.             "",
  690.                 'yes ', 'cncl' };
  691.  
  692.         'DLOG', 'yes ',    { 56, 23 }, { 26, 82 }, sizeFixed, sizeFixed, shown, enabled,
  693.         Button {
  694.             "",
  695.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  696.                 { 4, 4, 4, 4 }, systemFont,
  697.             "Yes" };
  698.  
  699.         'DLOG', 'no  ',    { 86, 195 }, { 18, 74 }, sizeFixed, sizeFixed, shown, enabled,
  700.         Button {
  701.             "",
  702.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  703.                 noInset, systemFont,
  704.             "No" };
  705.  
  706.         'DLOG', 'cncl',    { 86, 25 }, { 18, 74 }, sizeFixed, sizeFixed, shown, enabled,
  707.         Button {
  708.             "",
  709.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  710.                 noInset, systemFont,
  711.             "Cancel" };
  712.  
  713.         'DLOG', noID, { 12, 20 }, { 33, 257 }, sizeFixed, sizeFixed, shown, disabled,
  714.         StaticText {
  715.             "",
  716.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  717.                 noInset, systemFont,
  718.             justSystem, "Save changes to Untitled-1 before closing?" }
  719.     }
  720. };
  721.  
  722.  
  723. /************************************************************************************/
  724. /*    The "Mark" Dialog                                                                */
  725. /************************************************************************************/
  726. resource 'view' (cMarkDialog, purgeable) {
  727.     {
  728.         root, 'WIND', { 72, 64 }, { 92, 364 }, sizeVariable, sizeVariable, shown, enabled,
  729.         Window {
  730.             "",
  731.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  732.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  733.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'mark',
  734.                 "Mark Dialog" };
  735.  
  736.         'WIND', 'DLOG',    { 0, 0 }, { 1000, 500 }, sizeFixed, sizeFixed, shown, enabled,
  737.         DialogView {
  738.             "",
  739.                 'ok  ', 'cncl' };
  740.  
  741.         'DLOG', 'ok  ',    { 60, 48 }, { 28, 81 }, sizeFixed, sizeFixed, shown, enabled,
  742.         Button {
  743.             "",
  744.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  745.                 { 4, 4, 4, 4 }, systemFont,
  746.             "OK" };
  747.  
  748.         'DLOG', 'cncl',    { 64, 231 }, { 20, 73 }, sizeFixed, sizeFixed, shown, enabled,
  749.         Button {
  750.             "",
  751.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  752.                 noInset, systemFont,
  753.             "Cancel" };
  754.  
  755.         'DLOG', noID, { 8, 8 }, { 16, 344 }, sizeFixed, sizeFixed, shown, disabled,
  756.         StaticText {
  757.             "",
  758.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  759.                 noInset, systemFont,
  760.             justSystem, "Mark the selection with what name?" };
  761.  
  762.         'DLOG', 'mark', { 29, 7 }, { 22, 346 }, sizeFixed, sizeFixed, shown, enabled,
  763.         EditText {
  764.             "",
  765.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  766.                 stdInset, systemFont,
  767.             justSystem, "",
  768.             255, arrowsAndBackspace }
  769.     }
  770. };
  771.  
  772. /************************************************************************************/
  773. /*    The Modeless "Mark" Dialog                                                        */
  774. /************************************************************************************/
  775. resource 'view' (cModelessMarkDialog, purgeable) {
  776.     {
  777.         root, 'WIND', { 72, 64 }, { 92, 364 }, sizeVariable, sizeVariable, shown, enabled,
  778.         Window {
  779.             "",
  780.                 documentProc, goAwayBox, notResizable, modeless, ignoreFirstClick,
  781.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  782.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'mark',
  783.                 "Modeless Mark Dialog" };
  784.  
  785.         'WIND', 'DLOG',    { 0, 0 }, { 1000, 500 }, sizeFixed, sizeFixed, shown, enabled,
  786.         DialogView {
  787.             "TModelessMarkDialog",
  788.                 'ok  ', 'cncl' };
  789.  
  790.         'DLOG', 'ok  ',    { 60, 48 }, { 28, 81 }, sizeFixed, sizeFixed, shown, enabled,
  791.         Button {
  792.             "",
  793.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  794.                 { 4, 4, 4, 4 }, systemFont,
  795.             "OK" };
  796.  
  797.         'DLOG', 'cncl',    { 64, 231 }, { 20, 73 }, sizeFixed, sizeFixed, shown, enabled,
  798.         Button {
  799.             "",
  800.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  801.                 noInset, systemFont,
  802.             "Cancel" };
  803.  
  804.         'DLOG', noID, { 8, 8 }, { 16, 344 }, sizeFixed, sizeFixed, shown, disabled,
  805.         StaticText {
  806.             "",
  807.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  808.                 noInset, systemFont,
  809.             justSystem, "Mark the selection with what name?" };
  810.  
  811.         'DLOG', 'mark', { 29, 7 }, { 22, 346 }, sizeFixed, sizeFixed, shown, enabled,
  812.         EditText {
  813.             "",
  814.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  815.                 stdInset, systemFont,
  816.             justSystem, "",
  817.             255, arrowsAndBackspace }
  818.     }
  819. };
  820.  
  821. /************************************************************************************/
  822. /*    ImageWriter Page Setup Dialog                                                    */
  823. /************************************************************************************/
  824. resource 'view' (cPageSetupDialog, purgeable) {
  825.     {
  826.         root, 'WIND', { 30, 20 }, { 144, 472 }, sizeVariable, sizeVariable, shown, enabled,
  827.         Window {
  828.             "",
  829.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  830.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  831.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'DLOG',
  832.                 "Page Setup Dialog" };
  833.  
  834.         'WIND', 'DLOG',    { 0, 0 }, { 144, 472 }, sizeFixed, sizeFixed, shown, enabled,
  835.         DialogView {
  836.             "TPageSetupDialog",
  837.                 'ok  ', 'cncl' };
  838.  
  839.         'DLOG', 'ok  ',    { 0, 396 }, { 28, 68 }, sizeFixed, sizeFixed, shown, enabled,
  840.         Button {
  841.             "",
  842.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  843.                 { 4, 4, 4, 4 }, systemFont,
  844.             "OK" };
  845.  
  846.         'DLOG', 'cncl',    { 40, 400 }, { 20, 60 }, sizeFixed, sizeFixed, shown, enabled,
  847.         Button {
  848.             "",
  849.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  850.                 noInset, systemFont,
  851.             "Cancel" };
  852.  
  853.         'DLOG', noID, { 4, 4 }, { 16, 380 }, sizeFixed, sizeFixed, shown, disabled,
  854.         StaticText {
  855.             "",
  856.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  857.                 noInset, systemFont,
  858.             justSystem, "ImageWriter" };
  859.  
  860.         'DLOG', noID, { 20, 4 }, { 3, 380 }, sizeFixed, sizeFixed, shown, disabled,
  861.         Control {
  862.             "",
  863.                 adnLineTop+adnLineBottom, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  864.                 noInset, systemFont };
  865.  
  866.         'DLOG', noID, { 8, 300 }, { 12, 384-300 }, sizeFixed, sizeFixed, shown, disabled,
  867.         StaticText {
  868.             "",
  869.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  870.                 noInset, applFont9,
  871.             justRight, "MacApp 2.0" };
  872.  
  873.         'DLOG', noID, { 24, 4 }, { 16, 58 }, sizeFixed, sizeFixed, shown, disabled,
  874.         StaticText {
  875.             "",
  876.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  877.                 noInset, systemFont,
  878.             justSystem, "Paper:" };
  879.  
  880.         'DLOG', 'papC', { 24, 68 }, { 46, 320 }, sizeFixed, sizeFixed, shown, disabled,
  881.         Cluster {
  882.             "",
  883.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  884.                 noInset, systemFont,
  885.             "" };
  886.  
  887.         'papC', 'pap1', { 0, 0 }, { 16, 140 }, sizeFixed, sizeFixed, shown, enabled,
  888.         Radio {
  889.             "",
  890.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  891.                 noInset, systemFont,
  892.             on, "US Letter" };
  893.  
  894.         'papC', 'pap2', { 0, 150 }, { 16, 165 }, sizeFixed, sizeFixed, shown, enabled,
  895.         Radio {
  896.             "",
  897.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  898.                 noInset, systemFont,
  899.             off, "A4 Letter" };
  900.  
  901.         'papC', 'pap3', { 15, 0 }, { 16, 140 }, sizeFixed, sizeFixed, shown, enabled,
  902.         Radio {
  903.             "",
  904.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  905.                 noInset, systemFont,
  906.             off, "US Legal" };
  907.  
  908.         'papC', 'pap4', { 15, 150 }, { 16, 165 }, sizeFixed, sizeFixed, shown, enabled,
  909.         Radio {
  910.             "",
  911.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  912.                 noInset, systemFont,
  913.             off, "International Fanfold" };
  914.  
  915.         'papC', 'pap5', { 30, 0 }, { 16, 140 }, sizeFixed, sizeFixed, shown, enabled,
  916.         Radio {
  917.             "",
  918.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  919.                 noInset, systemFont,
  920.             off, "Computer Paper" };
  921.  
  922.         'papC', 'pap6', { 30, 150 }, { 16, 165 }, sizeFixed, sizeFixed, notShown, disabled,
  923.         Radio {
  924.             "",
  925.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  926.                 noInset, systemFont,
  927.             off, "Invisible" };
  928.  
  929.         'DLOG', noID, { 74, 4 }, { 16, 84 }, sizeFixed, sizeFixed, shown, disabled,
  930.         StaticText {
  931.             "",
  932.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  933.                 noInset, systemFont,
  934.             justSystem, "Orientation" };
  935.  
  936.         'DLOG', 'vert', { 93, 5 }, { 32, 32 }, sizeFixed, sizeFixed, shown, enabled,
  937.         Icon {
  938.             "TRadioIcon",
  939.                 noAdornment, sizeable, notDimmed, hilited, doesntDismiss,
  940.                 noInset, systemFont,
  941.             dontPreferColor, 10060 };
  942.  
  943.         'DLOG', 'horz', { 93, 45 }, { 32, 32 }, sizeFixed, sizeFixed, shown, enabled,
  944.         Icon {
  945.             "TRadioIcon",
  946.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  947.                 noInset, systemFont,
  948.             dontPreferColor, 10061 };
  949.  
  950.         'DLOG', noID, { 74, 106 }, { 16, 113 }, sizeFixed, sizeFixed, shown, disabled,
  951.         StaticText {
  952.             "",
  953.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  954.                 noInset, systemFont,
  955.             justSystem, "Special Effects:" };
  956.  
  957.         'DLOG', 'tall', { 74, 220 }, { 16, 108 }, sizeFixed, sizeFixed, shown, enabled,
  958.         CheckBox {
  959.             "",
  960.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  961.                 noInset, systemFont,
  962.             off, "Tall Adjusted" };
  963.  
  964.         'DLOG', 'red ', { 89, 220 }, { 16, 122 }, sizeFixed, sizeFixed, shown, enabled,
  965.         CheckBox {
  966.             "",
  967.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  968.                 noInset, systemFont,
  969.             off, "50 % Reduction" };
  970.  
  971.         'DLOG', 'gap ', { 104, 220 }, { 16, 181 }, sizeFixed, sizeFixed, shown, enabled,
  972.         CheckBox {
  973.             "",
  974.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  975.                 noInset, systemFont,
  976.             off, "No Gap Between Pages" }
  977.     }
  978. };
  979.  
  980. /************************************************************************************/
  981. /*    Format Dialog                                                                    */
  982. /************************************************************************************/
  983. resource 'view' (cFormatDialog, purgeable) {
  984.     {
  985.         root, 'WIND', { 68, 52 }, { 245-68, 435-52 }, sizeFixed, sizeFixed, shown, enabled,
  986.         Window {
  987.             "",
  988.                 dBoxProc, noGoAwayBox, notResizable, modal, ignoreFirstClick,
  989.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  990.                 dontAdaptToScreen, dontStagger, forceOnScreen, centerHorizontally, 'size',
  991.                 "Format Dialog" };
  992.  
  993.         'WIND', 'DLOG',    { 0, 0 }, { 245-68, 435-52 }, sizeSuperView, sizeSuperView, shown, enabled,
  994.         DialogView {
  995.             "",
  996.                 'ok  ', 'cncl' };
  997.  
  998.         'DLOG', 'ok  ',    { 100, 264 }, { 28, 81 }, sizeFixed, sizeFixed, shown, enabled,
  999.         Button {
  1000.             "",
  1001.                 adnRRect, {3, 3}, sizeable, notDimmed, notHilited, dismisses,
  1002.                 { 4, 4, 4, 4 }, systemFont,
  1003.             "OK" };
  1004.  
  1005.         'DLOG', 'cncl',    { 135, 268 }, { 20, 73 }, sizeFixed, sizeFixed, shown, enabled,
  1006.         Button {
  1007.             "",
  1008.                 noAdornment, sizeable, notDimmed, notHilited, dismisses,
  1009.                 noInset, systemFont,
  1010.             "Cancel" };
  1011.  
  1012.         'DLOG', noID, { 68, 253 }, { 17, 38 }, sizeFixed, sizeFixed, shown, disabled,
  1013.         StaticText {
  1014.             "",
  1015.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1016.                 noInset, systemFont,
  1017.             justSystem, "Tabs:" };
  1018.  
  1019.         'DLOG', 'tabs', { 65, 295 }, { 22, 37 }, sizeFixed, sizeFixed, shown, enabled,
  1020.         NumberText {
  1021.             "",
  1022.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1023.                 stdInset, systemFont,
  1024.             justSystem, "", 255, arrowsAndBackspace, 4, 0, 99 };
  1025.  
  1026.         'DLOG', 'inv ', { 42, 245 }, { 20, 127 }, sizeFixed, sizeFixed, shown, enabled,
  1027.         CheckBox {
  1028.             "",
  1029.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1030.                 noInset, systemFont,
  1031.             off, "Show Invisibles" };
  1032.  
  1033.         'DLOG', 'auto', { 25, 245 }, { 18, 123 }, sizeFixed, sizeFixed, shown, enabled,
  1034.         CheckBox {
  1035.             "",
  1036.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1037.                 noInset, systemFont,
  1038.             on, "Auto Indent" };
  1039.  
  1040.         'DLOG', noID, { 7, 15 }, { 18, 38 }, sizeFixed, sizeFixed, shown, disabled,
  1041.         StaticText {
  1042.             "",
  1043.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1044.                 noInset, systemFont,
  1045.             justSystem, "Font" };
  1046.  
  1047.         'DLOG', noID, { 7, 184 }, { 18, 33 }, sizeFixed, sizeFixed, shown, disabled,
  1048.         StaticText {
  1049.             "",
  1050.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1051.                 noInset, systemFont,
  1052.             justSystem, "Size" };
  1053.  
  1054.         'DLOG', 'size', { 27, 180 }, { 22, 40 }, sizeFixed, sizeFixed, shown, enabled,
  1055.         NumberText {
  1056.             "",
  1057.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1058.                 stdInset, systemFont,
  1059.             justSystem, "", 255, arrowsAndBackspace, 9, 0, 255 };
  1060.  
  1061.         'DLOG', noID, { 28, 11 }, { 130, 159 }, sizeFixed, sizeFixed, shown, disabled,
  1062.         Control {
  1063.             "",
  1064.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss, noInset, systemFont };
  1065.  
  1066.         'DLOG', 'SCL1',    { 29, 12 }, { 128, 142 },
  1067.         sizeFixed, sizeFixed, shown, enabled,
  1068.         Scroller {
  1069.             "",
  1070.                 vertScrollBar, noHorzScrollBar, 0, 0, 16, 16,
  1071.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  1072.  
  1073.         'SCL1', 'flst', { 0, 0 }, { 0, 142 },
  1074.         sizeVariable, sizeFixed, shown, enabled,
  1075.         TextListView {
  1076.             "TFontListView",
  1077.                 0, 1, 16, 142, 0, 6, dontAdornRows, dontAdornCols, singleSelection, systemFont };
  1078.  
  1079.         'DLOG', noID, { 60, 180 }, { 98, 40 }, sizeFixed, sizeFixed, shown, disabled,
  1080.         Control {
  1081.             "",
  1082.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss, noInset, systemFont };
  1083.  
  1084.         'DLOG', 'SCL2',    { 61, 181 }, { 96, 23 },
  1085.         sizeFixed, sizeFixed, shown, enabled,
  1086.         Scroller {
  1087.             "",
  1088.                 vertScrollBar, noHorzScrollBar, 0, 0, 16, 16,
  1089.                 vertConstrain, horzConstrain, { 0, 0, 0, 0 } };
  1090.  
  1091.         'SCL2', 'slst', { 0, 0 }, { 0, 23 },
  1092.         sizeVariable, sizeFixed, shown, enabled,
  1093.         TextListView {
  1094.             "TSizeListView",
  1095.                 0, 1, 16, 23, 0, 6, dontAdornRows, dontAdornCols, singleSelection, systemFont };
  1096.  
  1097.         'DLOG', noID, { 28, 233 }, { 128, 1 }, sizeFixed, sizeFixed, shown, disabled,
  1098.         Control {
  1099.             "",
  1100.                 adnLineLeft, { 1, 1 }, sizeable, dimmed, notHilited, doesntDismiss, noInset, systemFont }
  1101.     }
  1102. };
  1103.  
  1104. /************************************************************************************/
  1105. /*    Homebrew Controls Dialog                                                        */
  1106. /************************************************************************************/
  1107. resource 'view' (cHomeBrewControls, purgeable) {
  1108.     {
  1109.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  1110.         Window {
  1111.             "",
  1112.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  1113.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  1114.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, noID,
  1115.                 "Home Brew Controls" };
  1116.  
  1117.         'WIND', 'DLOG',    { 0, 0 }, { 240, 430 }, sizeSuperView, sizeSuperView, shown, enabled,
  1118.         DialogView {
  1119.             "THomeBrewDialog",
  1120.                 noID, noID };
  1121.  
  1122.         'DLOG', 'Conv', {100, 20}, { 90, 236 }, sizeFixed, sizeFixed, shown, disabled,
  1123.         Cluster {
  1124.             "TTemperatureConversionCluster",
  1125.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1126.                 noInset, systemFont,
  1127.             "Temperature Conversion" };
  1128.  
  1129.         'Conv', 'Cels', {20, 16}, { 60, 100 }, sizeFixed, sizeFixed, shown, disabled,
  1130.         Cluster {
  1131.             "TTemperatureCluster",
  1132.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1133.                 noInset, systemFont,
  1134.             "Celsius" };
  1135.  
  1136.  
  1137.         'Cels', 'arws', {30, 60}, {18, 11}, sizeFixed, sizeFixed, shown, enabled,
  1138.         Picture {
  1139.             "TArrowsControl",
  1140.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1141.                 noInset, systemFont,
  1142.             1001 };
  1143.  
  1144.         'Cels', 'Numb', { 30, 10 }, { 22, 40 }, sizeFixed, sizeFixed, shown, disabled,
  1145.         NumberText {
  1146.             "",
  1147.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  1148.                 {2, 2, 2, 2}, applFont12,
  1149.             justRight, "",
  1150.             255, ArrowsAndBackspace,
  1151.             0, -40, 105 };
  1152.  
  1153.         'Conv', 'Fahr', {20, 120}, { 60, 100 }, sizeFixed, sizeFixed, shown, disabled,
  1154.         Cluster {
  1155.             "TTemperatureCluster",
  1156.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1157.                 noInset, systemFont,
  1158.             "Fahrenheit" };
  1159.  
  1160.         'Fahr', 'arws', {30, 60}, {18, 11}, sizeFixed, sizeFixed, shown, enabled,
  1161.         Picture {
  1162.             "TArrowsControl",
  1163.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1164.                 noInset, systemFont,
  1165.             1001 };
  1166.  
  1167.         'Fahr', 'Numb', { 30, 10 }, { 22, 40 }, sizeFixed, sizeFixed, shown, disabled,
  1168.         NumberText {
  1169.             "",
  1170.                 adnFrame, {1, 1}, sizeable, notDimmed, notHilited, doesntDismiss,
  1171.                 {2, 2, 2, 2}, applFont12,
  1172.             justRight, "",
  1173.             255, ArrowsAndBackspace,
  1174.             32, -40, 220 };
  1175.  
  1176.         'DLOG', 'sldr', {100, 300}, {106, 35}, sizeFixed, sizeFixed, shown, enabled,
  1177.         Picture {
  1178.             "TSlider",
  1179.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1180.                 noInset, systemFont,
  1181.             1003 };
  1182.  
  1183.         'DLOG', 'sbar', { 20, 50 }, { 16, 300 }, sizeVariable, sizeVariable, shown, enabled,
  1184.         ScrollBar {
  1185.             "TScrollBar",
  1186.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1187.                 noInset, systemFont, 0, -1000, 1000 };
  1188.     }
  1189. };
  1190.  
  1191.  
  1192. /************************************************************************************/
  1193. /*    Cluster Tabbing Test Dialog                                                        */
  1194. /************************************************************************************/
  1195. resource 'view' (cTabbingTest, purgeable) {
  1196.     {
  1197.         root, 'WIND', { 50, 20 }, { 260, 430 }, sizeVariable, sizeVariable, shown, enabled,
  1198.         Window {
  1199.             "",
  1200.                 zoomDocProc, goAwayBox, resizable, modeless, ignoreFirstClick,
  1201.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  1202.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, 'edt1',
  1203.                 "Tabbing Test" };
  1204.  
  1205.         'WIND', 'DLOG',    { 0, 0 }, { 240, 430 }, sizeSuperView, sizeSuperView, shown, enabled,
  1206.         DialogView {
  1207.             "",
  1208.                 noId, noID };
  1209.  
  1210.         'DLOG', noID, { 10, 0 }, { 16, 430 }, sizeFixed, sizeFixed, shown, disabled,
  1211.         StaticText {
  1212.             "",
  1213.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1214.                 noInset, applFont12,
  1215.             justCenter, "This dialog demonstrates tabbing" };
  1216.  
  1217.         'DLOG', 'edt1', { 40, 20 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1218.         EditText {
  1219.             "",
  1220.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1221.                 stdInset, systemFont,
  1222.             justSystem, "one",
  1223.             255, arrowsAndBackspace };
  1224.  
  1225.         'DLOG', 'edt2', { 70, 20 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1226.         EditText {
  1227.             "",
  1228.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1229.                 stdInset, systemFont,
  1230.             justSystem, "two",
  1231.             255, arrowsAndBackspace };
  1232.  
  1233.         'DLOG', 'cls1', { 100, 10 }, { 110, 190 }, sizeFixed, sizeFixed, shown, disabled,
  1234.         Cluster {
  1235.             "",
  1236.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1237.                 noInset, systemFont,
  1238.             "Cluster One" };
  1239.  
  1240.         'cls1', 'edt3', { 30, 10 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1241.         EditText {
  1242.             "",
  1243.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1244.                 stdInset, systemFont,
  1245.             justSystem, "three",
  1246.             255, arrowsAndBackspace };
  1247.  
  1248.         'cls1', 'edt4', { 70, 10 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1249.         EditText {
  1250.             "",
  1251.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1252.                 stdInset, systemFont,
  1253.             justRight, "four",
  1254.             255, arrowsAndBackspace };
  1255.  
  1256.         'DLOG', 'cls2', { 30, 210 }, { 200, 190 }, sizeFixed, sizeFixed, shown, disabled,
  1257.         Cluster {
  1258.             "",
  1259.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1260.                 noInset, systemFont,
  1261.             "Cluster Two" };
  1262.  
  1263.         'cls2', 'edt5', { 30, 20 }, { 22, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1264.         EditText {
  1265.             "",
  1266.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1267.                 stdInset, systemFont,
  1268.             justCenter, "five",
  1269.             255, arrowsAndBackspace };
  1270.  
  1271.         'cls2', 'edt6', { 70, 20 }, { 100, 150 }, sizeFixed, sizeFixed, shown, enabled,
  1272.         EditText {
  1273.             "",
  1274.                 adnFrame, { 1, 1 }, sizeable, notDimmed, notHilited, doesntDismiss,
  1275.                 stdInset, systemFont,
  1276.             justSystem, "six",
  1277.             255, arrowsAndBackspace | carriageReturn }
  1278.  
  1279.     }
  1280. };
  1281.  
  1282.  
  1283. /************************************************************************************/
  1284. /*    Calculator clone dialog                                                            */
  1285. /************************************************************************************/
  1286. #define monaco9        plain,  9, {0, 0, 0}, "monaco"
  1287.  
  1288. resource 'view' (cCalculator, purgeable) {
  1289.     {
  1290.         root, 'WIND', { 60, 60 }, { 154, 112 }, sizeVariable, sizeVariable, shown, enabled,
  1291.         Window {
  1292.             "",
  1293.                 rDocProc, goAwayBox, notResizable, modeless, ignoreFirstClick,
  1294.                 freeOnClosing, disposeOnFree, closesDocument, openWithDocument,
  1295.                 dontAdaptToScreen, stagger, forceOnScreen, dontCenter, 'DLOG',
  1296.                 "Calculator" };
  1297.  
  1298.         'WIND', 'DLOG',    { 0, 0 }, { 154, 112 }, sizeSuperView, sizeSuperView, shown, disabled,
  1299.         Picture {
  1300.             "TCalcDialog",
  1301.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1302.                 noInset, systemFont,
  1303.             kCalcPicture };
  1304.  
  1305.         'DLOG', noID, { 6, 12 }, { 14, 88 }, sizeFixed, sizeFixed, shown, disabled,
  1306.         StaticText {
  1307.             "",
  1308.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1309.                 noInset, bold+italic+condense, 9, { 0xFFFF, 0, 0 }, "monaco",
  1310.             justSystem, "MacApp®-ulator" };
  1311.  
  1312.         'DLOG', 'SUMM', { 26, 12 }, { 18, 88 }, sizeFixed, sizeFixed, shown, disabled,
  1313.         StaticText {
  1314.             "TSumStaticText",
  1315.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss,
  1316.                 { 2, 2, 2, 2 }, monaco9,
  1317.             justRight, "0" };
  1318.  
  1319.         'DLOG', 'keyC', { 50, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1320.         Control {
  1321.             "",
  1322.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1323.  
  1324.         'DLOG', 'key=', { 50, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1325.         Control {
  1326.             "",
  1327.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1328.  
  1329.         'DLOG', 'key/', { 50, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1330.         Control {
  1331.             "",
  1332.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1333.  
  1334.         'DLOG', 'key*', { 50, 80 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1335.         Control {
  1336.             "",
  1337.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1338.  
  1339.         'DLOG', 'key7', { 70, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1340.         Control {
  1341.             "",
  1342.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1343.  
  1344.         'DLOG', 'key8', { 70, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1345.         Control {
  1346.             "",
  1347.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1348.  
  1349.         'DLOG', 'key9', { 70, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1350.         Control {
  1351.             "",
  1352.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1353.  
  1354.         'DLOG', 'key-', { 70, 80 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1355.         Control {
  1356.             "",
  1357.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1358.  
  1359.         'DLOG', 'key4', { 90, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1360.         Control {
  1361.             "",
  1362.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1363.  
  1364.         'DLOG', 'key5', { 90, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1365.         Control {
  1366.             "",
  1367.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1368.  
  1369.         'DLOG', 'key6', { 90, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1370.         Control {
  1371.             "",
  1372.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1373.  
  1374.         'DLOG', 'key+', { 90, 80 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1375.         Control {
  1376.             "",
  1377.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1378.  
  1379.         'DLOG', 'key1', { 110, 14 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1380.         Control {
  1381.             "",
  1382.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1383.  
  1384.         'DLOG', 'key2', { 110, 36 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1385.         Control {
  1386.             "",
  1387.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1388.  
  1389.         'DLOG', 'key3', { 110, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1390.         Control {
  1391.             "",
  1392.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1393.  
  1394.         'DLOG', 'keyE', { 110, 80 }, { 36, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1395.         Control {
  1396.             "",
  1397.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1398.  
  1399.         'DLOG', 'key0', { 130, 14 }, { 16, 41 }, sizeFixed, sizeFixed, shown, enabled,
  1400.         Control {
  1401.             "",
  1402.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 };
  1403.  
  1404.         'DLOG', 'key.', { 130, 58 }, { 16, 19 }, sizeFixed, sizeFixed, shown, enabled,
  1405.         Control {
  1406.             "",
  1407.                 noAdornment, sizeable, notDimmed, notHilited, doesntDismiss, noInset, monaco9 }
  1408.     }
  1409. };
  1410.  
  1411. type 'SS11' as 'STR ';
  1412. resource 'SS11' (0,
  1413. #if qNames
  1414. "Signature",
  1415. #endif
  1416.     purgeable) {
  1417.     "Application created by MacApp®"
  1418. };
  1419.  
  1420. resource 'BNDL' (128,
  1421. #if qNames
  1422. "Bundle",
  1423. #endif
  1424.     purgeable) {
  1425.     'SS11',
  1426.     0,
  1427.         {
  1428.         'ICN#',
  1429.             {
  1430.             0, 128,
  1431.             },
  1432.         'FREF',
  1433.             {
  1434.             0, 128,
  1435.             }
  1436.         }
  1437. };
  1438.  
  1439. include "Defaults.rsrc"  'STR#' (kDefaultCredits);        // Grab the default credits
  1440.  
  1441. // Get the default MacApp® application icon and necessary bundling rsrcs
  1442. include "Defaults.rsrc"  'FREF' (128);
  1443. include "Defaults.rsrc"  'ICN#' (128);
  1444.  
  1445. // Get the default Version resources
  1446. include "Defaults.rsrc"  'vers' (1);        // Application or file specific
  1447. include "Defaults.rsrc"  'vers' (2);        // Overall package
  1448.